package com.liveinstars.im.domain.dao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.liveinstars.im.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;

/**
 * <p>
 * 聊天服务器
 * </p>
 *
 * @author 8btc
 * @since 2020-03-31
 */
@Data
@ToString
public class ChatServer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 内网ip
     */
    private String ip;

    /**
     * 出网ip
     */
    private String outIp;

    /**
     * 端口号
     */
    private String port;

    /**
     * 在线状态
     */
    private Boolean online;

    /**
     * 服务名称
     */
    private String name;
}
